<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
window 对象的属性
         history      {}  对象   History
         前进  后退
-->

<a href="./08-history2.html">history2</a>
<button>前进</button>
<script>
  console.log(window.history);
  document.getElementsByTagName('button')[0].onclick = function (){
    // 前进
      window.history.forward()
  }
</script>
</body>
</html>